package com.example.demo.system.service;

import com.example.demo.system.entity.FItem;
import org.springframework.web.multipart.MultipartFile;

import java.io.FileNotFoundException;
import java.util.List;

public interface IFileService {
    public void save(MultipartFile file, String path) throws FileNotFoundException;
    void mkdir(String path, String  dirName);

    List<FItem> getCurrentItems(String path);

    void rename(String oldName, String newName, String path);

    void mv(String from, String to, String path);

    void cacheSlice(MultipartFile blob, String sliceFileName);

    void coalesce(String path, String sliceFileName, String fileName, int sliceTotalNumber);

    void abort(String sliceFileName, Integer uploadedSlice);
}
